[#import "/framework/JGP.htm"  as JGP]
<!--
项目   glSystem
作者   fdp
时间   2018/8/1
-->
[@JGP.head "Title"/]
[@JGP.body]
<jgp-div _row="['*','100']" _runit="px" _aux="true">
    <jgp-form slot="1-1" _action="/glMeeting/arrangementApiController/addArrangement" _method="POST"  _id="saveArrangement" _fdata='${editArrangement!""}'>
        <jgp-text  _col="12" _label="手机号" _name="mobilePhone" _value=""></jgp-text>
        <jgp-date-time _not_input="true" _label="计划日期" _name="planDate" _format="date"></jgp-date-time>
        <jgp-text  _col="12" _label="会议座次" _name="siteNo" _value=""></jgp-text>
        <jgp-text  _col="12" _label="会议车次" _name="busNo" _value=""></jgp-text>
        <jgp-text  _col="12" _label="酒店房间号" _name="roomNo" _value=""></jgp-text>
        <jgp-text  _col="12" _label="就餐安排" _name="diningArrange" _value=""></jgp-text>


    </jgp-form>

    <jgp-div slot="2-1" _col="['*','*']"  _aux="true">
        <jgp-btn slot="1-1" _fn="reset"  >重置</jgp-btn>
        <jgp-btn slot="1-2" _fn="saveArrangement">保存</jgp-btn>
    </jgp-div>
</jgp-div>
[/@JGP.body]

[@JGP.foot]
<script>
    //重置
    function reset(){
        JGP.form('saveArrangement').reset();
    }
    function saveArrangement() {
        var saveArrangement=JGP.form("saveArrangement");
        saveArrangement.ajaxSubmit(function success(res) {
            if(res.flag==true){
                JGP.$alert("添加成功");
                //  JGP.form("addMeetingManager").reset();
                JGP.$close(res.flag);
            }else if(res.flag==false) {
                JGP.$alert("添加失败");
                //  JGP.form("addMeetingManager").reset();
                JGP.$close(res.flag);
            }
        })
    }
</script>
[/@JGP.foot]